var target ={ //对象 网页 url
    name:'poetries'
}

var handler ={
    get: function(target,key){
        console.log(target,key,'546---');
        return target[key];
    },
    set:function(target,key,value){
        console.log('............');
        target[key] = value;
    }
}

var targetWithLog = new Proxy(target, handler);

console.log(targetWithLog.name);
targetWithLog.name = 'wl';
console.log(targetWithLog.name);
// 浏览器